home *** CD-ROM | disk | FTP | other *** search
- Path: cs.ruu.nl!usenet
- From: wsldanke@cs.ruu.nl (Wessel Dankers)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: BitMap problem
- Date: 14 Apr 96 23:23:55 +0100
- Organization: Dept of Computer Science, Utrecht University, The Netherlands
- Message-ID: <1158.6678T1403T2778@cs.ruu.nl>
- References: <4kfesg$sqe@sinsen.sn.no> <1996Apr10.104208.28803@imada.ou.dk>
- <4kgqs9$clr@serpens.rhein.de> <1996Apr11.153514.2002@imada.ou.dk>
- <4kjiim$lhd@serpens.rhein.de> <632.6675T1277T900@cs.ruu.nl> <4kntq5$78q@serpens.rhein.de>
- NNTP-Posting-Host: anx1p10.cc.ruu.nl
- X-Newsreader: THOR 2.22 (Amiga TCP/IP)
-
- Michael van Elst <mlelstv@serpens.rhein.de> wrote:
- > wsldanke@cs.ruu.nl (Wessel Dankers) writes:
-
- >>>>window with the wrong BitMap (the one(s) you allocated manually)
- >>>>linked to the RastPort, the OS gets annoyed and decides to annoy
- >>>>you with gurus.
-
- >>> In fact, you end with gurus if you poke into a windows rastport.
- >>> And double buffering this way is illegal anyway.
-
- >>Hmm. How can I AreaDraw() in a window's RastPort then? One *must* link in an
- >>AreaInfo and a TmpRas somehow.
-
- > Yes. Maybe that was a bit misleading. A window RastPort is owned by
- > the window and uses the screens bitmap. Poking the bitmap and also
- > many other rastport fileds is illegal because the rastport is used
- > by Intuition too.
-
- Yup.
-
- > AreaInfo and TmpRas are allowed although I consider this bad design.
-
- It's exactly what I do now, and it crashes. And that's even though I restore
- the original pointers after use! Maybe my TmpRas isn't big enough, although
- I'm quite certain it is.
-
- > A cleaner method is to clone the windows RastPort and modify the copy.
-
- You mean with ClipBlit()? Not really the fastest solution on earth, is it?
-
- --
- Wessel Dankers
-
- "Nusuth."
-
-